import api from './apis';
import { post, get, postFile, postJson, postJson_cydn, postJson_face, postJson_face_zyr } from '../request';

export function getCorpNames (params) {
  return postJson(api.getCorpNames, params, true);
}

export function getOrderedBanks (params) {
  return postJson(api.getOrderedBanks, params, true);
}

export function faceRecognition (params) {
  return postJson(api.faceRecognition, params, true);
}

export function generateAuthorization (params) {
  return postJson(api.generateAuthorization, params, true);
}

export function insertMes (params) {
  return postJson(api.insertMes, params, true);
}

export function getByID (params) {
  return postJson_cydn(api.getByID, params, true);
}
export function faceRecognition_face (params) {
  return postJson_face(api.faceRecognition_face, params, true);
}
export function selectAuthDeptList (params) {
  return postJson_face(api.selectAuthDeptList, params, true);
}
export function generateAuthorization_zx (params) {
  return postJson_face(api.generateAuthorization_zx, params, true);
}
export function updateRecordById (params) {
  return postJson_cydn(api.updateRecordById, params, true);
}

export function allOpenBankList (params) {
  return postJson_face(api.allOpenBankList, params, true);
}
export function jbxxList (params) {
  return postJson_face(api.jbxxList, params, true);
}

export function allBankList (params) {
  return postJson_face(api.allBankList, params, true);
}

export function addOnlineAuth (params) {
  return postJson_face(api.addOnlineAuth, params, true);
}
export function idCardRecognition (params) {
  return postJson_face_zyr(api.idCardRecognition, params, true);
}
export function businessLicenseRecognition (params) {
  return postJson_face_zyr(api.businessLicenseRecognition, params, true);
}
export function idCardCompanyInfoAdd (params) {
  return postJson_face(api.idCardCompanyInfoAdd, params, true);
}
export function id_number (params) {
  return postJson_face(api.id_number, params, true);
}
export function idCardAdd (params) {
  return postJson_face(api.idCardAdd, params, true);
}
export function isNoRecognitionQyxx (params) {
  return postJson_face(api.isNoRecognitionQyxx, params, true);
}
export function companyInfoList (params) {
  return postJson_face(api.companyInfoList, params, true);
}
export function allOpenBankList2 (params) {
  return postJson_face(api.allOpenBankList2, params, true);
}
export function allBankList2 (params) {
  return postJson_face(api.allBankList2, params, true);
}
export function addAuth (params) {
  return postJson_face(api.addAuth, params, true);
}
export function selectOpenBankList (params) {
  return postJson_face(api.selectOpenBankList, params, true);
}
export function credit_auth_callback (params) {
  return postJson_face(api.credit_auth_callback, params, true);
}
export function sp_auth_callback (params) {
  return postJson_face(api.sp_auth_callback, params, true);
}
export default {
  getCorpNames,
  getOrderedBanks,
  faceRecognition,
  generateAuthorization,
  insertMes,
  getByID,
  faceRecognition_face,
  selectAuthDeptList,
  updateRecordById,
  generateAuthorization_zx,
  allOpenBankList,
  allOpenBankList2,
  jbxxList,
  allBankList,
  allBankList2,
  addOnlineAuth,
  idCardRecognition,
  id_number,
  idCardAdd,
  businessLicenseRecognition,
  isNoRecognitionQyxx,
  companyInfoList,
  addAuth,
  selectOpenBankList,
  credit_auth_callback,
  sp_auth_callback
};
